<?php

/**
 * Created by PhpStorm.
 * User: lovel
 * Date: 2017/10/22
 * Time: 23:01
 */
class AddStudent_control extends MY_Controller
{
    function index()
    {
        $this->load->model('manage/add_student_model', 'student');
        $body = $_POST;
        if (!$body) {
            $body = $this->input->raw_input_stream;
        }
        echo $this->student->add_student($body);
    }
}